﻿using Company.Core.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Core.Language
{
    /// <summary>
    /// 多语言接口
    /// </summary>
    public interface ILanguageManager
    {
        /// <summary>
        /// 根据CN，获取中文
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        string this[string key] { get; }

        /// <summary>
        /// CN,中文
        /// </summary>
        LanguageModel Current { get; }

        List<LanguageModel> Languages { get; }

        void Set(LanguageType languageType);
    }
}
